package cn.edu.scnu.semart.model.cart;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
public class CartItemDTO {
    private Integer cartId;
    private Integer userId;
    private Integer productId;
    private Integer quantity;
    private Boolean selected;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", timezone = "GMT+8")
    private Date addedTime;

    // 商品信息
    private String productName;
    private String productDescription;
    private BigDecimal productPrice;
    private String productImage;
    private Integer stockStatus; // 商品库存状态

    // 卖家信息
    private Integer sellerId;
    private String sellerName;
}